/*
============================================================================
FileName	:	XQChatNetManager.h
Author		:	liyake
Website		:	http://www.liyake.com
Create Data	:	2012-03-16 11:25
Change Data	:	2012-03-16 11:25
Detail		:	manager network. e.g: download files.
============================================================================
*/
#ifndef _XQCHAT_NET_MANAGER_H_
#define _XQCHAT_NET_MANAGER_H_
#include <QNetworkAccessManager>
#include "XQChatRoster.h"

namespace XQChat
{
	class CXQChatNetManager : public QObject
	{
	//	Q_OBJECT
	public:
		CXQChatNetManager(void);
		~CXQChatNetManager(void);

	public:
		bool getRosterHeader(const QString& url, const QString& savefile);

	public:
		static CXQChatNetManager* getNetManager();

	private:
		QNetworkAccessManager* m_pNetworkManager;
		static CXQChatNetManager* m_pNetManager;
	};
}

#endif	//_XQCHAT_NET_MANAGER_H_